import service from '@/utils/request'

// @Tags QmPlatforms
// @Summary 创建qmPlatforms表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.QmPlatforms true "创建qmPlatforms表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /qmPlatforms/createQmPlatforms [post]
export const createQmPlatforms = (data) => {
  return service({
    url: '/qmPlatforms/createQmPlatforms',
    method: 'post',
    data
  })
}

// @Tags QmPlatforms
// @Summary 删除qmPlatforms表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.QmPlatforms true "删除qmPlatforms表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /qmPlatforms/deleteQmPlatforms [delete]
export const deleteQmPlatforms = (params) => {
  return service({
    url: '/qmPlatforms/deleteQmPlatforms',
    method: 'delete',
    params
  })
}

// @Tags QmPlatforms
// @Summary 批量删除qmPlatforms表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除qmPlatforms表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /qmPlatforms/deleteQmPlatforms [delete]
export const deleteQmPlatformsByIds = (params) => {
  return service({
    url: '/qmPlatforms/deleteQmPlatformsByIds',
    method: 'delete',
    params
  })
}

// @Tags QmPlatforms
// @Summary 更新qmPlatforms表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.QmPlatforms true "更新qmPlatforms表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /qmPlatforms/updateQmPlatforms [put]
export const updateQmPlatforms = (data) => {
  return service({
    url: '/qmPlatforms/updateQmPlatforms',
    method: 'put',
    data
  })
}

// @Tags QmPlatforms
// @Summary 用id查询qmPlatforms表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.QmPlatforms true "用id查询qmPlatforms表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /qmPlatforms/findQmPlatforms [get]
export const findQmPlatforms = (params) => {
  return service({
    url: '/qmPlatforms/findQmPlatforms',
    method: 'get',
    params
  })
}

// @Tags QmPlatforms
// @Summary 分页获取qmPlatforms表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取qmPlatforms表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /qmPlatforms/getQmPlatformsList [get]
export const getQmPlatformsList = (params) => {
  return service({
    url: '/qmPlatforms/getQmPlatformsList',
    method: 'get',
    params
  })
}
